package dto

import "tdy-backend/pkg/paginator"

type MaterialCommitDto struct {
	Kind      int                     `json:"Kind" binding:"required"`
	Key       string                  `json:"Key" binding:"required"`
	UniqueKey string                  `json:"UniqueKey" binding:"required"`
	SubParam  *[]MaterialCommitSubDto `json:"SubParam" binding:"-"`
}

type MaterialCommitSubDto struct {
	Title     string `json:"Title"`
	Panoramic string `json:"Panoramic" `
	Size      int64  `json:"Size"`
}

type MaterialEditDto struct {
	ID    uint   `json:"ID" binding:"required"`
	Title string `json:"Title" binding:"required"`
}

type MaterialDeleteDto struct {
	Ids []uint `json:"Ids" binding:"required"`
}
type MaterialListDto struct {
	paginator.PageParam
	Keyword string `json:"Keyword" binding:"-"`
	Kind    int    `json:"Kind" binding:"required"`
}
